package org.gruposp2p.openid.provider;

import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser;

public class OpenIdUser extends GrailsUser {

	String transactionAmount;
	long id;

	public OpenIdUser (){
		super('dummy', 'dummy', true, true, true, 
				true, new ArrayList<GrantedAuthority>(), new Long(0).value)
	}

	public OpenIdUser (String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked,
            Collection<GrantedAuthority> authorities, long userId) {
		 super(username, password, enabled, accountNonExpired,
			       credentialsNonExpired, accountNonLocked, authorities, userId)
		 this.id = userId;
	}	
	
	/*
	public long getId () {
		return this.id;
	}*/
	
}